package com.tping.sp;

import org.apache.catalina.startup.Tomcat;

public class SpringBootDemoApplication {

    public static void main(String[] args) {
        Tomcat tomcat = new Tomcat();
        try {
            tomcat.setPort(8090);
            tomcat.addWebapp("/", "D:\\ops\\");
            tomcat.start();
            tomcat.getServer().await();
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
